import request from '@/utils/request'

export function crateArtist (artist) {
  return request({
    url: '/artist/addArtist',
    method: 'post',
    data:artist
  })
}

export function findArtist (param) {
    return request({
        url:'/artist/selectArtist',
        method:'post',
        data:param
    })
}

export function updateArtist (artist) {
  return request({
    url: '/artist/updateArtist',
    method: 'post',
    data:artist
  })
}

export function deleteArtist (param) {
  console.log(param)
  return request({
    url:'/artist/deleteArtist',
    method:'post',
    data:param
  })
}

